package blog.service;

import javax.annotation.Resource;

import blog.entity.User;
import org.springframework.stereotype.Service;
import blog.mapper.ArticleMapper;
import blog.mapper.UserMapper;

/**
 * 用户管理
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Resource
    private ArticleMapper articleMapper;

    /**
     * 根据id查询用户信息(其实这里可以不用带有照片,但程序中还是查了)
     */
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
